package com.lhy.framework.beans.factory.factory;

import com.lhy.framework.beans.PropertyValues;

/**
 * @ClassName BeanDefinition
 * @Description
 * @Author lihaiyang
 * @Date 2022/9/8 22:19
 * @Version 1.0
 */
public class BeanDefinition {

    private Class clazz;

    private PropertyValues propertyValues;

    public BeanDefinition(Class clazz) {
        this.clazz = clazz;
        this.propertyValues = new PropertyValues();
    }

    public BeanDefinition(Class clazz, PropertyValues propertyValues) {
        this.clazz = clazz;
        this.propertyValues = propertyValues != null ? propertyValues : new PropertyValues();
    }

    public Class getClazz() {
        return clazz;
    }

    public PropertyValues getPropertyValues() {
        return propertyValues;
    }

}
